//------------------------------------------------------------------------------
//此代码由工具生成
//请使用partial类进行扩展,避免修改被覆盖
//------------------------------------------------------------------------------
using System;
using XKPlatform.DataModels;
using System.Collections.Generic;
using System.Text;
using XKPlatform.Common;

namespace XKPlatform
{
    public  class SysUserRoleService :SysUserRoleDao,ISysUserRoleService
    {
        

         public List<SysUserRoleModel> GetList(int pageIndex, int pageSize, string whereSql, Dictionary<string, object> paramMap, string orderByField, int orderByType, out int totalCount)
         {
             return   GetSysUserRoleModelList( pageIndex,  pageSize,  whereSql,  paramMap,  orderByField,  orderByType, out  totalCount);
         }

         public  List<SysUserRoleModel> GetList(string whereSql, Dictionary<string, object> paramMap)
          {
            return GetSysUserRoleModelList(  whereSql,   paramMap);
          }

         public List<SysUserRoleModel> GetList()
        {
           return GetSysUserRoleModelList();
         }

        public SysUserRoleModel GetModel(string whereSql, Dictionary<string, object> paramMap)
        {
           return  GetSingleSysUserRoleModel( whereSql,  paramMap);
         }

        public SysUserRoleModel GetModel(string key, string value)
        {
          return GetSingleSysUserRoleModel(  key,   value);
         }

        public  int Insert(SysUserRoleModel item)
        {
            item.ID = Guid.NewGuid().ToString();
            item.RecordStatus = "0";
            item.ModifiedBy = "";
            item.ModifiedOn = DateTime.Now.ToString();
            return  InsertSysUserRoleModel(item);
        }
        public int Update(SysUserRoleModel item, string whereSql)
        {
            item.ModifiedBy = "";
            item.ModifiedOn = DateTime.Now.ToString();
            item.RecordStatus = "0";
            return UpdateSysUserRoleModel( item,   whereSql);
        }

         public int Delete(string whereSql, Dictionary<string, object> paramMap)
         {
            return  DeleteSysUserRoleModel(  whereSql,  paramMap);
         }     
       }
}
